package com.eshop.modules.order.service.dto;

import java.io.Serializable;

public class ExpressDto implements Serializable
{
    private Integer id;
    private String code;
    private String name;
    private Integer sort;
    private Integer isShow;
    
    public Integer getId() {
        return this.id;
    }
    
    public String getCode() {
        return this.code;
    }
    
    public String getName() {
        return this.name;
    }
    
    public Integer getSort() {
        return this.sort;
    }
    
    public Integer getIsShow() {
        return this.isShow;
    }
    
    public void setId(final Integer id) {
        this.id = id;
    }
    
    public void setCode(final String code) {
        this.code = code;
    }
    
    public void setName(final String name) {
        this.name = name;
    }
    
    public void setSort(final Integer sort) {
        this.sort = sort;
    }
    
    public void setIsShow(final Integer isShow) {
        this.isShow = isShow;
    }
    
    @Override
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof ExpressDto)) {
            return false;
        }
        final ExpressDto other = (ExpressDto)o;
        if (!other.canEqual(this)) {
            return false;
        }
        final Object this$id = this.getId();
        final Object other$id = other.getId();
        Label_0065: {
            if (this$id == null) {
                if (other$id == null) {
                    break Label_0065;
                }
            }
            else if (this$id.equals(other$id)) {
                break Label_0065;
            }
            return false;
        }
        final Object this$sort = this.getSort();
        final Object other$sort = other.getSort();
        Label_0102: {
            if (this$sort == null) {
                if (other$sort == null) {
                    break Label_0102;
                }
            }
            else if (this$sort.equals(other$sort)) {
                break Label_0102;
            }
            return false;
        }
        final Object this$isShow = this.getIsShow();
        final Object other$isShow = other.getIsShow();
        Label_0139: {
            if (this$isShow == null) {
                if (other$isShow == null) {
                    break Label_0139;
                }
            }
            else if (this$isShow.equals(other$isShow)) {
                break Label_0139;
            }
            return false;
        }
        final Object this$code = this.getCode();
        final Object other$code = other.getCode();
        Label_0176: {
            if (this$code == null) {
                if (other$code == null) {
                    break Label_0176;
                }
            }
            else if (this$code.equals(other$code)) {
                break Label_0176;
            }
            return false;
        }
        final Object this$name = this.getName();
        final Object other$name = other.getName();
        if (this$name == null) {
            if (other$name == null) {
                return true;
            }
        }
        else if (this$name.equals(other$name)) {
            return true;
        }
        return false;
    }
    
    protected boolean canEqual(final Object other) {
        return other instanceof ExpressDto;
    }
    
    @Override
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $id = this.getId();
        result = result * 59 + (($id == null) ? 43 : $id.hashCode());
        final Object $sort = this.getSort();
        result = result * 59 + (($sort == null) ? 43 : $sort.hashCode());
        final Object $isShow = this.getIsShow();
        result = result * 59 + (($isShow == null) ? 43 : $isShow.hashCode());
        final Object $code = this.getCode();
        result = result * 59 + (($code == null) ? 43 : $code.hashCode());
        final Object $name = this.getName();
        result = result * 59 + (($name == null) ? 43 : $name.hashCode());
        return result;
    }
    
    @Override
    public String toString() {
        return "ExpressDto(id=" + this.getId() + ", code=" + this.getCode() + ", name=" + this.getName() + ", sort=" + this.getSort() + ", isShow=" + this.getIsShow() + ")";
    }
}
